package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

/**
 * @author chencfgs
 * @date 2019-12-08 10:52
 */
public interface UserService {

    public User findByUserName(String username);

    public void add(User user,Integer[] roleIds);

    public void delete(Integer id);

    PageResult findPage(QueryPageBean queryPageBean);

    public void update(User user,Integer[] ids);

    //查询所有角色信息
    List<Role> getAllRoles();

    //更改用户密码
    Result updateUser(Integer id, String password);


}
